package com.medi.chats.dao;

import com.medi.chats.model.McUsers;
import org.springframework.stereotype.Repository;

import java.util.Map;

@Repository
public interface McUsersMapper {
    int deleteByPrimaryKey(Long id);

    int insert(McUsers record);

    int insertSelective(McUsers record);

    McUsers selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(McUsers record);

    int updateByPrimaryKey(McUsers record);


    /******************************************************************************************************************/
    /******************************************************************************************************************/
    /***************************************************下面是扩展方法*************************************************/
    /******************************************************************************************************************/
    /******************************************************************************************************************/

    McUsers getUserInfoByOpenId(Map map);

    McUsers getUserInfoByUnionId(Map map);

    long insertUserBackWithId(McUsers users);
}
